import request from '@/utils/request'

// 查询意向投资人列表
export function listFundIntentionInvest(query) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/list',
    method: 'get',
    params: query
  })
}

// /checkLpName/{fundId}/{investorId}
export function checkLpName(fundId, investorId) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/checkLpName/' + fundId + '/' + investorId,
    method: 'get'
  })
}

// 查询意向投资人详细
export function getFundIntentionInvest(id) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/' + id,
    method: 'get'
  })
}

// 保存意向投资人
export function saveFundIntentionInvest(data) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/save',
    method: 'post',
    data: data
  })
}

// 删除意向投资人
export function delFundIntentionInvest(id) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/' + id,
    method: 'delete'
  })
}

// 导出意向投资人
export function exportFundIntentionInvest(query) {
  return request({
    url: '/intentionInvest/fundIntentionInvest/export',
    method: 'get',
    params: query
  })
}
